import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { TokenEntity } from '../auth/entities/token.entity';
import { ResourceEntity } from '../resource/entities/resource.entity';
import { ResourceRoleEntity } from '../resource/entities/resource.role.entity';
import { ResourceService } from '../resource/resource.service';
import { UserEntity } from './entities/user.entity';
import { UserController } from './user.controller';
import { UserService } from './user.service';

@Module({
  imports: [
    TypeOrmModule.forFeature([UserEntity, TokenEntity, ResourceEntity, ResourceRoleEntity]),
  ],
  controllers: [UserController],
  providers: [UserService, ResourceService],
})
export class UserModule {}
